#include "jchineseinputpanel.h"
#include "ui_jchineseinputpanel.h"
#include "inputmethod/jabstractinputpanel_p.h"
#include "widgets/jvkbutton.h"
#include <QTECore/QTEGlobal>

namespace QTE
{

InputPanel_register(JChineseInputPanel, LGG_SimplifiedChinese);

class Q_DECL_HIDDEN JChineseInputPanelPrivate : public JAbstractInputPanelPrivate
{
public:
	~JChineseInputPanelPrivate() override;
	void init(JAbstractInputPanel *q_ptr) override;

public:
	Ui::JChineseInputPanel *ui;
};

JChineseInputPanelPrivate::~JChineseInputPanelPrivate()
{
	delete ui;
}

void JChineseInputPanelPrivate::init(JAbstractInputPanel *q_ptr)
{
	JAbstractInputPanelPrivate::init(q_ptr);
	ui = new Ui::JChineseInputPanel();
	ui->setupUi(J_RCT(JChineseInputPanel*, q_ptr));
	ui->horizontalLayout_4->insertWidget(ui->horizontalLayout_4->count() - 1, m_backSpaceButton);
}

/*------------------------------------------------------------------------------------------------*/

JChineseInputPanel::JChineseInputPanel(QWidget *parent) :
	JAbstractChinesePanel(new JChineseInputPanelPrivate(), parent)
{

}

JChineseInputPanel::~JChineseInputPanel()
{

}

} //namespace QTE
